﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nage.Algorithms.Solution
{
    /// <summary>
    /// Solution evaluator interface. When implemented, it provides 
    /// the measurement of fitness for the solution
    /// </summary>
    /// <typeparam name="TSol">Type of the solution</typeparam>
    public interface ISolutionEvaluator<TSol> where TSol : ISolution
    {
        /// <summary>
        /// Evaluates the solution by measuring its fitness
        /// </summary>
        /// <param name="solution">a solution</param>
        /// <returns>fitness value</returns>
        double Evaluate(TSol solution);
    }
}
